all: ../data/training.nab ../data/scoring.nab ../data/wtraining.nab ../data/wscoring.nab

mkdat:mkdat.c
	$(CC) -o mkdat mkdat.c


SEED_T=87126381


clean: 
	rm -f *.nab *.csv *.vec *.stats mkdat

# data for training -- no weight column
../data/training.nab:
	./mkdat -s $(SEED_T) -d 30 -n 100000 \
	-c training.csv -v training.vec > training.stats
	unitable -i training.csv -o ../data/training.nab --bin

# data for training -- with weight column
../data/wtraining.nab:
	./mkdat -s $(SEED_T) -w -d 30 -n 100000 \
	-c wtraining.csv -v wtraining.vec > wtraining.stats
	unitable -i wtraining.csv -o ../data/wtraining.nab --bin

SEED_S=12387234

# data for scoring -- no weight column
../data/scoring.nab:
	./mkdat -s $(SEED_S) -d 10 -n 25000 \
	-c scoring.csv -v scoring.vec > scoring.stats
	unitable -i scoring.csv -o ../data/scoring.nab --bin

# data for scoring -- with weight column
../data/wscoring.nab:
	./mkdat -s $(SEED_S) -w -d 10 -n 25000 \
	-c wscoring.csv -v wscoring.vec > wscoring.stats
	unitable -i wscoring.csv -o ../data/wscoring.nab --bin

cnts:
	awk -F: -f vecnt.awk < training.vec

